from random import randint

import numpy as np
import matplotlib.pyplot as plt

plt.rcParams['font.family'] = 'SimHei'
plt.rcParams['font.size'] = 12
plt.style.use(['ggplot', 'fast'])

data = np.array([randint(100, 130) for _ in np.arange(100)])

fig = plt.figure('Hist Chart', figsize=(16, 8))
plt.title('直方图', fontsize=24)

plt.hist(data, bins=6)
plt.show()
